package com.sale.system.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.system.domain.SysUserRole;
import com.sale.system.domain.SysWorkbenchAuditAgent;
import com.sale.system.domain.dto.SysWorkbenchAuditAgentDto;
import com.sale.system.domain.vo.SysWorkbenchAuditAgentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 审核代办mapper
 */
public interface SysWorkbenchAuditAgentMapper extends BaseMapperPlus<SysWorkbenchAuditAgentMapper, SysWorkbenchAuditAgent, SysWorkbenchAuditAgent> {

    /**
     * 审核代办列表
     */
    Page<SysWorkbenchAuditAgentDto> getAuditAgentList(@Param("sysWorkbenchAuditAgentVo") SysWorkbenchAuditAgentVo sysWorkbenchAuditAgentVo, @Param("page") Page<SysWorkbenchAuditAgentDto> page);

    /**
     * 批量新增审核
     * @param list
     * @return
     */
    boolean insertAuditAgent(@Param("list") List<SysWorkbenchAuditAgentVo> list);

    /**
     * 修改审核单据状态
     * @param status,receiptNumber
     * @return
     */
    boolean updateStatus(@Param("status") int status,@Param("receiptNumber") String receiptNumber,@Param("modelName") String modelName);

    /**
     * 删除审核代办
     * @param receiptNumber
     * @return
     */
    boolean deleteDoc(@Param("receiptNumber") String receiptNumber,@Param("modelName") String modelName);
}
